package main;

import java.io.IOException;

import javax.sound.midi.InvalidMidiDataException;

public class MidiGenerator
{
	private static final String freqTable = "myFile.txt";
	private static final String midiCSVfile = "csvMidi.csv";
	
	private static final int notesPerBeat = 2;
	private static final int instrument = 106;
	private static final int volume = 127;
	
	public static void main(String[] args) throws IOException, InvalidMidiDataException
	{
		OutputCSV outputCSV = new OutputCSV(notesPerBeat,instrument,volume);
		outputCSV.readFile(freqTable);
		outputCSV.outputCSVFile(midiCSVfile);
		
		CSVtoMidiConverter midiMaker = new CSVtoMidiConverter();
		midiMaker.createMidi();
	}
}
